package com.googlecode.milib.display.ui.scroller {
	import com.googlecode.milib.base.IMLBroadcaster;

	/**
	 * @author Marek Brun
	 */
	public interface IScroller extends IMLBroadcaster {
		
		function get event_VisibletoTotalChanged():String;
		
		/**
		 * Sets the slider in position
		 * 
		 * @param position number from 0 to 1
		 * @param visibleToTotal dependence of visible content (eg. text) to total length (visible/total) 
		 */
		function setPosition(position:Number, visibleToTotal:Number):void;
		
		/**
		 * @return position number from 0 to 1 (determined by slider positin)
		 */
		function getPosition():Number;
		
		function setScrolled(scrolled:IScrollable):void;
		
		function unsetScrolled():void;
		
	}
}
